package com.eshop.modules.product.service.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import java.util.List;
import javax.validation.constraints.NotBlank;

public class StoreProductDto
{
    private Long id;
    @NotBlank(message = "商品图片必传")
    private String image;
    @NotNull(message = "轮播图不为空")
    @JsonProperty("slider_image")
    private List<String> sliderImage;
    @NotBlank(message = "商品名称不能为空")
    @JsonProperty("store_name")
    private String storeName;
    @JsonProperty("store_info")
    private String storeInfo;
    @NotBlank(message = "关键字不能为空")
    private String keyword;
    @JsonProperty("bar_code")
    private String barCode;
    @NotNull(message = "分类id不能为空")
    @JsonProperty("cate_id")
    private String cateId;
    private Double price;
    private Double otPrice;
    private Double postage;
    @JsonProperty("unit_name")
    private String unitName;
    private Long sort;
    private Long sales;
    private Long stock;
    @JsonProperty("is_show")
    private Integer isShow;
    @JsonProperty("is_hot")
    private Integer isHot;
    @JsonProperty("is_benefit")
    private Integer isBenefit;
    @JsonProperty("is_best")
    private Integer isBest;
    @JsonProperty("is_new")
    private Integer isNew;
    @NotBlank(message = "商品详情不能为空")
    private String description;
    @JsonProperty("is_postage")
    private Integer isPostage;
    @JsonProperty("give_integral")
    private Double giveIntegral;
    private Double cost;
    @JsonProperty("is_good")
    private Integer isGood;
    @JsonProperty("is_sub")
    private Integer isSub;
    @JsonProperty("is_integral")
    private Integer isIntegral;
    private Long ficti;
    @JsonProperty("temp_id")
    private Long tempId;
    @JsonProperty("spec_type")
    private Integer specType;
    private List<FromatDetailDto> items;
    private List<ProductFormatDto> attrs;
    
    public Long getId() {
        return this.id;
    }
    
    public String getImage() {
        return this.image;
    }
    
    public List<String> getSliderImage() {
        return this.sliderImage;
    }
    
    public String getStoreName() {
        return this.storeName;
    }
    
    public String getStoreInfo() {
        return this.storeInfo;
    }
    
    public String getKeyword() {
        return this.keyword;
    }
    
    public String getBarCode() {
        return this.barCode;
    }
    
    public String getCateId() {
        return this.cateId;
    }
    
    public Double getPrice() {
        return this.price;
    }
    
    public Double getOtPrice() {
        return this.otPrice;
    }
    
    public Double getPostage() {
        return this.postage;
    }
    
    public String getUnitName() {
        return this.unitName;
    }
    
    public Long getSort() {
        return this.sort;
    }
    
    public Long getSales() {
        return this.sales;
    }
    
    public Long getStock() {
        return this.stock;
    }
    
    public Integer getIsShow() {
        return this.isShow;
    }
    
    public Integer getIsHot() {
        return this.isHot;
    }
    
    public Integer getIsBenefit() {
        return this.isBenefit;
    }
    
    public Integer getIsBest() {
        return this.isBest;
    }
    
    public Integer getIsNew() {
        return this.isNew;
    }
    
    public String getDescription() {
        return this.description;
    }
    
    public Integer getIsPostage() {
        return this.isPostage;
    }
    
    public Double getGiveIntegral() {
        return this.giveIntegral;
    }
    
    public Double getCost() {
        return this.cost;
    }
    
    public Integer getIsGood() {
        return this.isGood;
    }
    
    public Integer getIsSub() {
        return this.isSub;
    }
    
    public Integer getIsIntegral() {
        return this.isIntegral;
    }
    
    public Long getFicti() {
        return this.ficti;
    }
    
    public Long getTempId() {
        return this.tempId;
    }
    
    public Integer getSpecType() {
        return this.specType;
    }
    
    public List<FromatDetailDto> getItems() {
        return this.items;
    }
    
    public List<ProductFormatDto> getAttrs() {
        return this.attrs;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setImage(final String image) {
        this.image = image;
    }
    
    @JsonProperty("slider_image")
    public void setSliderImage(final List<String> sliderImage) {
        this.sliderImage = sliderImage;
    }
    
    @JsonProperty("store_name")
    public void setStoreName(final String storeName) {
        this.storeName = storeName;
    }
    
    @JsonProperty("store_info")
    public void setStoreInfo(final String storeInfo) {
        this.storeInfo = storeInfo;
    }
    
    public void setKeyword(final String keyword) {
        this.keyword = keyword;
    }
    
    @JsonProperty("bar_code")
    public void setBarCode(final String barCode) {
        this.barCode = barCode;
    }
    
    @JsonProperty("cate_id")
    public void setCateId(final String cateId) {
        this.cateId = cateId;
    }
    
    public void setPrice(final Double price) {
        this.price = price;
    }
    
    public void setOtPrice(final Double otPrice) {
        this.otPrice = otPrice;
    }
    
    public void setPostage(final Double postage) {
        this.postage = postage;
    }
    
    @JsonProperty("unit_name")
    public void setUnitName(final String unitName) {
        this.unitName = unitName;
    }
    
    public void setSort(final Long sort) {
        this.sort = sort;
    }
    
    public void setSales(final Long sales) {
        this.sales = sales;
    }
    
    public void setStock(final Long stock) {
        this.stock = stock;
    }
    
    @JsonProperty("is_show")
    public void setIsShow(final Integer isShow) {
        this.isShow = isShow;
    }
    
    @JsonProperty("is_hot")
    public void setIsHot(final Integer isHot) {
        this.isHot = isHot;
    }
    
    @JsonProperty("is_benefit")
    public void setIsBenefit(final Integer isBenefit) {
        this.isBenefit = isBenefit;
    }
    
    @JsonProperty("is_best")
    public void setIsBest(final Integer isBest) {
        this.isBest = isBest;
    }
    
    @JsonProperty("is_new")
    public void setIsNew(final Integer isNew) {
        this.isNew = isNew;
    }
    
    public void setDescription(final String description) {
        this.description = description;
    }
    
    @JsonProperty("is_postage")
    public void setIsPostage(final Integer isPostage) {
        this.isPostage = isPostage;
    }
    
    @JsonProperty("give_integral")
    public void setGiveIntegral(final Double giveIntegral) {
        this.giveIntegral = giveIntegral;
    }
    
    public void setCost(final Double cost) {
        this.cost = cost;
    }
    
    @JsonProperty("is_good")
    public void setIsGood(final Integer isGood) {
        this.isGood = isGood;
    }
    
    @JsonProperty("is_sub")
    public void setIsSub(final Integer isSub) {
        this.isSub = isSub;
    }
    
    @JsonProperty("is_integral")
    public void setIsIntegral(final Integer isIntegral) {
        this.isIntegral = isIntegral;
    }
    
    public void setFicti(final Long ficti) {
        this.ficti = ficti;
    }
    
    @JsonProperty("temp_id")
    public void setTempId(final Long tempId) {
        this.tempId = tempId;
    }
    
    @JsonProperty("spec_type")
    public void setSpecType(final Integer specType) {
        this.specType = specType;
    }
    
    public void setItems(final List<FromatDetailDto> items) {
        this.items = items;
    }
    
    public void setAttrs(final List<ProductFormatDto> attrs) {
        this.attrs = attrs;
    }
    
    @Override
    public String toString() {
        return "StoreProductDto(id=" + this.getId() + ", image=" + this.getImage() + ", sliderImage=" + this.getSliderImage() + ", storeName=" + this.getStoreName() + ", storeInfo=" + this.getStoreInfo() + ", keyword=" + this.getKeyword() + ", barCode=" + this.getBarCode() + ", cateId=" + this.getCateId() + ", price=" + this.getPrice() + ", otPrice=" + this.getOtPrice() + ", postage=" + this.getPostage() + ", unitName=" + this.getUnitName() + ", sort=" + this.getSort() + ", sales=" + this.getSales() + ", stock=" + this.getStock() + ", isShow=" + this.getIsShow() + ", isHot=" + this.getIsHot() + ", isBenefit=" + this.getIsBenefit() + ", isBest=" + this.getIsBest() + ", isNew=" + this.getIsNew() + ", description=" + this.getDescription() + ", isPostage=" + this.getIsPostage() + ", giveIntegral=" + this.getGiveIntegral() + ", cost=" + this.getCost() + ", isGood=" + this.getIsGood() + ", isSub=" + this.getIsSub() + ", isIntegral=" + this.getIsIntegral() + ", ficti=" + this.getFicti() + ", tempId=" + this.getTempId() + ", specType=" + this.getSpecType() + ", items=" + this.getItems() + ", attrs=" + this.getAttrs() + ")";
    }
}
